package com.apcc4m.sfpushbatch.repository;

import java.util.List;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;

public interface PushStatusRepository extends MongoRepository<PushStatus, String> {

    // @Query("{$maxScan: 10000}")
    // @Query("{nId: ?0 ,userType: ?1,status: ?2, $limit:10000 }")
    @Query(value = "{ $query : {'nId' : ?0 ,'userType' : ?1,'status' : ?2 } }")
    List<PushStatus> findByNIdAndUserTypeAndStatus(String nId, int userType, int status);
}
